#ifndef _ADC_MEASUREMENT_TASK_H
#define _ADC_MEASUREMENT_TASK_H

#include <appConfig.h>
#include <SoftTimerTask.h>
#include "systick_device.h"
#include <taskManager.h>
#include <adc_device.h>
#include "hwcfg.h"

typedef struct{
  uint32_t coefficient;
  int32_t offset;
}mParam_t;

typedef struct{
  mParam_t Batt;
  mParam_t Temp;
  mParam_t LedPN[3];
}MeasureParam_t;

#define LED_PN_GAIN             4096
#define LED_PN_GAIN_POS         12

#define INVALID_PARAM           (0x7FFF)

int16_t ADC_GetVBatVolt(void);
int16_t ADC_GetChipTemperature(void);
//int16_t ADC_GetLedTemperature(void);
int16_t ADC_GetLedTemperature(LedNumber_t ledNo);





















#endif